package com.dzbiao.controller;

import com.dzbiao.entity.Order;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {


    @GetMapping("/{id}")
    public String detail(@PathVariable("id") Integer id){

        return new Order(1,"xxxx商品" + id ,232.12 , "用户信息" + 100.0,"商户信息" +id).toString();
    }

}
